﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IService.Rempos
{
    public class GoodsDTO
    {
        /// <summary>
        /// 商品id
        /// </summary>
        [Key]
        public int Goods_Id { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        [StringLength(30)]
        public string Goods_Name { get; set; } = string.Empty;
        /// <summary>
        /// 商品价格
        /// </summary>
        public decimal Goods_Price { get; set; }
        /// <summary>
        /// 商品预览图
        /// </summary>
        [StringLength(300)]
        public string Goods_Img { get; set; } = string.Empty;
        /// <summary>
        /// 商品状态(true代表上架，false代表下架)
        /// </summary>
        public bool Goods_State { get; set; }
        /// <summary>
        /// 商品描述
        /// </summary>
        [StringLength(200)]
        public string Goods_Remark { get; set; } = string.Empty;

        /// <summary>
        /// 商品品牌编号（逻辑外键）
        /// </summary>
        public int GoodsId { get; set; }
        /// <summary>
        /// 商品分类id（逻辑外键）
        /// </summary>
        public string GoodsType_Id { get; set; }
        /// <summary>
        /// 商品创建时间
        /// </summary>
        public DateTime Goods_Create { get; set; } = DateTime.Now;


        /// <summary>
        /// 商品品牌名称（额外加入的页面）
        /// </summary>
        public string GoodsName { get; set; } = string.Empty;
        /// <summary>
        /// 商品分类名称
        /// </summary>
        public string GoodsType_Name { get; set; } = string.Empty;
    }
}
